Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Use androidx.core.graphics.PathParser instead of accessing a non-SDK interface via reflection #77

Closed
wants to merge 1 commit into from

Conversation

tomdug
Copy link

@tomdug tomdug commented Sep 22, 2021

Fixes #76

Instead of calling android.util.PathParser.createPathFromPathData (which is prohibited when targeting API level 31), we can use androidx.core.graphics.PathParser.

I also removed the following check Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP since this is always true given that minSdkVersion is 21.

@tomdug tomdug closed this by deleting the head repository Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-SDK usage causing RichPathView.setVectorDrawable to throw an exception when targeting API Level 31
1 participant